 <style>
.ttl{width:120px;text-align:right;display-inline:block;vertical-align: top;}
.pop_cont_input{line-height:30px;} .pop_cont_input input{pading:0px 5px;} .pop_cont_input select{height:28px;}

.pop_cont ul li{width:90%;}


 </style>
 
<link href='/static/tab_window/css/progression.css' rel='stylesheet' type='text/css'>
<link href='/static/tab_window/css/style.css' rel='stylesheet' type='text/css'>
<style>

#tabs2 .tabs_header li {
    float: left;
    width: 220px;
    text-align: center;
    border-radus: 4px;
}
.pop_cont .form_ul li{width:50%;float:left;line-height:35px;}
.form_ul input{height:28px;}
.weitiao{height:28px;line-height:28px;}
.ttl{width: 70px;
display: inline-block;}


 </style>

 <div class="pop_cont" style="width:700px;left:30%;">
    <!--title-->
       	<h3><?php echo $title;?><span class="falseBtn" style="color:red;float:right;font-size:18px;cursor:pointer;">X</span></h3>
	
			
				<ul  class="form_ul" style="width:95%;margin-left:auto;margin-right:auto;">
        
         <li>
           <span class="ttl">申请人名称</span>
           <span><?php echo $LoginUserInfo['UserInfo']['nickname']; ?></span>
          
         </li>
         <li>
           <span class="ttl">申报部门</span>
           <span><?php 
               if($LoginUserInfo['SecondDep'])
			   {
					echo $LoginUserInfo['SecondDep']['depname'];		
               }else if($LoginUserInfo['FirstDep'])
			   {
					echo $LoginUserInfo['FirstDep']['depname'];		
               }
           ?></span>
          
         </li>
         <li>
           <span class="ttl weitiao">联系电话</span>
            <input type="text" name="jc1_phone" id="jc1_phone" value="<?php echo $LoginUserInfo['UserInfo']['phone'];?>" placeholder="联系电话" class="textbox" style="padding:0px;" />
          
         </li>
          
         
        
         
             <li>
           <span class="ttl weitiao">餐饮时间</span>
            
            <input name="jc1_stime"  id="jc1_stime" class="Wdate textbox Fselect" placeholder="时间"  onfocus="WdatePicker({lang:'zh-cn',dateFmt: 'yyyy-MM-dd HH:mm', minDate: '<?php echo date("Y-m-d H:i"); ?>',})" style="padding: 0 5px;height: 32px;font-size: 12px;border: 1px #139667 solid;width:150px;vertical-align: middle;" value="<?php echo date('Y-m-d H:i'); ?>" size="14"  type="text">
         </li>
         
          <li>
           <span class="ttl weitiao">服务员人数</span>
            <input type="text" name="jc1_people_num" id="jc1_people_num" value="1" placeholder="服务员人数" class="textbox" style="padding:0px;" />人
          
         </li>
         
         <li style="width:100%;clear:both;">
           <span class="ttl weitiao">服务需求</span>
            
            <textarea name="jc1_conts" id="jc1_conts" cols="60" rows="3"></textarea>
         </li>
          
         <br style="width:0px;height:0px;clear:both;" />
      
        </ul>
		       <span style="width:100%;display:block;text-align: center;margin:10px auto;">
			        <input type="button" value="确认" style="background:#3d7ba8;color:white;padding:8px 10px;" class=" trueBtn1"/>
			        <input type="button" value="关闭" style="background:#cfcfcf;color:white;padding:8px 10px;" class=" falseBtn"/>
		       </span>
			</div>
	
      
      <script>
      $(function(){
    	  $(".network_type").hide();
     	  $("#e-network").change(function(){
     		  var ty =$(this).val();
     		  if(ty=='0')
     		  {
     			 $(".network_type").hide(); 
     		  }else
     		  {
     			 $(".network_type").show();
     		  }
     	  });
     
	       $(".trueBtn").unbind().bind("click",function(){
			 
	    	var that =this;
   		    var url="/admin/my/addJcDataJob1";
   		 	
   		 	var phone=$("#jc_phone").val();
   		 	var name=$("#jc_name").val();
   		 	var office_no=$("#jc_office_no").val();
   		 	var stime=$("#jc_stime").val();
   		 	var people_num=$("#jc_people_num").val();
   		 	var conts=$("#jc_conts").val();
		    
   		   if(phone=="")
	 		{
	 		     ErrTiShi("请填写联系电话");return false;
	 		}
	   		if(name=="")
	 		{
	 		     ErrTiShi("请填写会议名称");return false;
	 		}
   		   if(office_no=="")
	 		{
	 		     ErrTiShi("请填写会议室");return false;
	 		}
	   		if(stime=="")
	 		{
	 		     ErrTiShi("请填写会议时间");return false;
	 		}
	   		if(people_num=="")
	 		{
	 		     ErrTiShi("请填写服务员人数");return false;
	 		}
		   
   		   
		    if(conts=="")
		    {
		    	ErrTiShi("请填写会务需求");return false;
		    }
		    
		 
		    var param={
		    		phone:phone,
		    		name:name,
		    		office_no:office_no,
		    		stime:stime,
		    		people_num:people_num,
		    		conts:conts,
		    		op_type:1,//1会议保障 2餐饮保障
					sys_opt:'addData'//后台判断编辑操作
		    };
		   
			 AjaxRequest(url,param,function(data){
  			   if(data.err==0)
  			   {
  				 
  				   var isContinut=0;
  				   cofirmsss_tishi(1,'操作成功',function(id){
  					 
					   isContinut=1;
					   myResearch();
					 $(".pop_bg").fadeIn();
				   },function(){
					 $(".pop_bg").fadeOut();
					 	
				   		myResearch();
				   });
  				  
  			   }
  			   else
  			   {
  				   ErrTiShi(data.msg);
  			   }
  		   	});
			 
		  });
	      
	      $(".trueBtn1").click(function(){
				 
		    	var that =this;
	   		    var url="/admin/my/addJcDataJob1";
	   		 	
	   		 	var phone=$("#jc1_phone").val();
	   		 	var stime=$("#jc1_stime").val();
	   		 	var people_num=$("#jc1_people_num").val();
	   		 	var conts=$("#jc1_conts").val();
			    
	   		   if(phone=="")
		 		{
		 		     ErrTiShi("请填写联系电话");return false;
		 		}
		   		
		   		if(stime=="")
		 		{
		 		     ErrTiShi("请填写时间");return false;
		 		}
		   		if(people_num=="")
		 		{
		 		     ErrTiShi("请填写服务员人数");return false;
		 		}
			   
	   		   
			    if(conts=="")
			    {
			    	ErrTiShi("请填写服务需求");return false;
			    }
			    
			 
			    var param={
			    		phone:phone,
			    		stime:stime,
			    		people_num:people_num,
			    		conts:conts,
			    		op_type:2,//1会议保障 2餐饮保障
						sys_opt:'addData'//后台判断编辑操作
			    };
			   
				 AjaxRequest(url,param,function(data){
	  			   if(data.err==0)
	  			   {
	  				   var isContinut=0;
	  				   cofirmsss_tishi(1,'操作成功',function(id){
						   isContinut=1;
						   myResearch();
						 $(".pop_bg").fadeIn();
					   },function(){
						 $(".pop_bg").fadeOut();
						 	
					   		myResearch();
					   });
	  				  
	  			   }
	  			   else
	  			   {
	  				   ErrTiShi(data.msg);
	  			   }
	  		   	});
				 
			  });
		   //弹出：取消或关闭按钮
		   $(".falseBtn").unbind().bind("click",function(){
			   myResearch();
			 $(".pop_bg").fadeOut();
		   });
		   
		   

		   $("#s_type").change(function(){
		  	   
		  	   var url="/admin/my/selectMyOrdep";
		  		    var ty=$(this).val();
		  		    if(ty=="")
		  		    {
		  		    	$("#s_val").html('<option value="">--选择--</option>');
		  		    	return true;
		  		    }
		  		    var param={
		  				   ty:ty
		  		    };
		  	   AjaxRequest(url,param,function(data){
		  		   if(data.err==0)
		  		   {
		  			   var html='<option value="">--选择--</option>';
		  			   $.each(data.data,function(i,v){
		  				 html +='<option value="'+v.id+'">'+v.dvename+'</option>'
		  			   })
		  			   $("#s_val").html(html);
		  		   }
		  		   else
		  		   {
		  			   ErrTiShi("操作失败");
		  		   }
		  	   	});
		  	   
		   });
		   
		   
 $(".secondTypeRS").change(function(){
		  	   
	 getCodes();
 });
		   
		   
		
			$("#all").click(function(){   
		    	if(this.checked){   
		        	$(".checkBoxInput").attr("checked", true);  
		        	$(".checkBoxInput").prop("checked", true);  
		    	}else{   
					$(".checkBoxInput").attr("checked", false);
					$(".checkBoxInput").prop("checked", false);
		    	}   
		    	var se=getAllSelectItem();
		    	//console.log(se);
		 	}); 
			   
 	});
      function getCodes()
      {
    	   var url="/admin/devlist/generaCode";
		    var id=$("#e-type").val();
		   
		    var param={
				   id:id
				   
		    };
		   
	   AjaxRequest(url,param,function(data){
		   if(data.err==0)
		   {
			   
			   $("#e-dveid").val(data.data);
		   }
		   else
		   {
			   ErrTiShi("操作失败");
		   }
	   	});
	   
      }
      </script>
      
      
<script type="text/javascript" src="/static/tab_window/js/tabulous.js"></script>
<script type="text/javascript">
$(function(){
     $('#tabs2').tabulous({
    	effect: 'slideLeft'
   	});
});
</script>